

int minDeletionSize(char **A, int ASize)
{
    int lenStr = strlen(A[0]);
    int ret = 0;
    int i, j;
    for (i = 0; i < lenStr; i++)
    {
        for (j = 0; j < ASize - 1; j++)
        {
            if (A[j][i] > A[j + 1][i])
            {
                ret++;
                break;
            }
        }
    }
    return ret;
}